package com.example.demo.waiguan;

/**
 * @Description  电影院
 * @Author youxin
 * @Version V1.0.0
 * @Since 1.0
 * @Date 2022/1/17
 */
public class VideoHome {
    private BaoMiHua baoMiHua;
    private DVDPlyer dvdPlyer;
    private Screen screen;

    //构造器
    public VideoHome(){
        this.baoMiHua=BaoMiHua.getBaoMiHua();
        this.dvdPlyer=DVDPlyer.getDvdPlyer();
        this.screen=Screen.getScreen();
    }

    public void ready(){
        baoMiHua.ready();
        baoMiHua.cookie();
        dvdPlyer.ready();
    }
    public void open(){
        dvdPlyer.play();
        screen.open();
    }
    public void end(){
        dvdPlyer.off();
        screen.off();
    }





}
